package org.spitter.core.dao;

import java.util.List;

import org.spitter.core.model.Spitter;
import org.spitter.core.model.Spittle;

public interface SpittleDao extends EntityJpaDao<Spittle> {
	/**
	 * @param no max number of spittles that will be returned
	 * @return a list with the most recent spittles 
	 */
	List<Spittle> getRecentSpittles(int no);

	/**
	 * 
	 * @param spitter
	 * @return returns a list of spittles written by the spitter or an empty
	 *         list if there are none
	 */
	List<Spittle> findBySpitter(Spitter spitter);
}
